package io.lckgroup.modules.lck.service;

import com.baomidou.mybatisplus.extension.service.IService;
import io.lckgroup.common.utils.PageUtils;
import io.lckgroup.modules.lck.entity.CustBaseEntity;
import io.lckgroup.modules.lck.entity.CustomerInfoEntity;
import io.lckgroup.modules.lck.entity.qo.CustBaseQo;
import io.lckgroup.modules.lck.entity.qo.updateCustBaseQo;

import java.util.List;
import java.util.Map;

/**
 * 顾客信息表
 *
 * @author srq
 * @email siruiqi@siruiqi.com
 * @date 2020-01-19 19:14:40
 */
public interface CustBaseService extends IService<CustBaseEntity> {

    PageUtils queryPage(Map<String, Object> params);

    //根据openid查询用户信息
    List<CustBaseEntity> getCustomerByUserId(String openid);

    CustBaseEntity  getChild(String id);

    boolean updateChild (updateCustBaseQo qo);
    boolean insertChild (updateCustBaseQo qo);
    boolean deleteChild (String id);
    //插入用户数据后查询出用户数据
    CustBaseEntity saveAndSelectCustomer(CustBaseEntity customer);

    boolean saveUserBase (CustomerInfoEntity customerInfoEntity,CustBaseQo customer);


}

